package com.luck.dto;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface InventoryDao {

    @Update("update inventory set qty = qty - #{qty} where productId=#{productId}")
    Integer deduct(Integer productId, Integer qty);
}